Android Studio Mysql Veri Tabanına Veri Ekleme
Herkese Merhabalar Bir Uygulama tasarlıyorum kendim ile ilgili mysql veri kaydetmem gerekli fakat videoları da izlememe rağmen mantığı anlayamadım bu konuda yardımcı olabilirmisiniz activity kodlarımı alttarafa ekliyorum
Sütunlarım : musteri tel adres kombimarkasi kombimodeli yapilanislem alinanucret yapimtarihi resim maps
10 Adet Sütunum Mysql Veri Tabanımda Açık ActivityEkle.Xml Aşağıdaki Şekilde Ekle.Class Dosyam mevcut butona tıklıyorum ekle.class açıyorum fakat bir türlü mantığı çözemedim bu işlerde yeniyim.
<?xml version="1.0" encoding="utf-8"?> <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" tools:context="com.servis.kayit.app.Ekle"> <EditText android:id="@+id/musteri" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginStart="16dp" android:ems="10" android:inputType="textPersonName" android:text="Name" app:layout_constraintStart_toStartOf="parent" tools:layout_editor_absoluteY="27dp" /> <EditText android:id="@+id/tel" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginStart="16dp" android:ems="10" android:inputType="textPersonName" android:text="Name" app:layout_constraintStart_toStartOf="parent" tools:layout_editor_absoluteY="80dp" /> <EditText android:id="@+id/adres" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginStart="16dp" android:ems="10" android:inputType="textPersonName" android:text="Name" app:layout_constraintStart_toStartOf="parent" tools:layout_editor_absoluteY="138dp" /> <EditText android:id="@+id/kombimarkasi" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginStart="16dp" android:ems="10" android:inputType="textPersonName" android:text="Name" app:layout_constraintStart_toStartOf="parent" tools:layout_editor_absoluteY="200dp" /> <EditText android:id="@+id/kombimodeli" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginStart="16dp" android:ems="10" android:inputType="textPersonName" android:text="Name" app:layout_constraintStart_toStartOf="parent" tools:layout_editor_absoluteY="256dp" /> <EditText android:id="@+id/yapilanislem" android:layout_width="wrap_content" android:layout_height="wrap_content" android:ems="10" android:inputType="textPersonName" android:text="Name" tools:layout_editor_absoluteX="15dp" tools:layout_editor_absoluteY="307dp" /> <EditText android:id="@+id/alinanucret" android:layout_width="wrap_content" android:layout_height="wrap_content" android:ems="10" android:inputType="textPersonName" android:text="Name" tools:layout_editor_absoluteX="15dp" tools:layout_editor_absoluteY="360dp" /> <EditText android:id="@+id/yapimtarihi" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginStart="16dp" android:ems="10" android:inputType="textPersonName" android:text="Name" app:layout_constraintStart_toStartOf="parent" tools:layout_editor_absoluteY="412dp" /> <EditText android:id="@+id/resim" android:layout_width="wrap_content" android:layout_height="wrap_content" android:ems="10" android:inputType="textPersonName" android:text="Name" tools:layout_editor_absoluteX="12dp" tools:layout_editor_absoluteY="458dp" /> <EditText android:id="@+id/maps" android:layout_width="wrap_content" android:layout_height="wrap_content" android:ems="10" android:inputType="textPersonName" android:text="Name" tools:layout_editor_absoluteX="13dp" tools:layout_editor_absoluteY="512dp" /> <Button android:id="@+id/gonder" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginEnd="16dp" android:layout_marginBottom="16dp" android:text="Button" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" /> </androidx.constraintlayout.widget.ConstraintLayout>